
from odoo import api, fields, models
from odoo.exceptions import UserError
import logging
_logger = logging.getLogger(__name__)

class need(models.Model):
    # properties
    _name = 'pjm.need'
    _inherit = ['mail.thread']
    _description = '需求'
    # String fields
    name = fields.Char(string='name')
    process = fields.Text(string='业务流程')
    needs = fields.Text(string='业务需求')
    priority = fields.Char(string='优先级')
    tobe = fields.Text(string='期望')
    way = fields.Char(string='对应方式')
    status = fields.Char(string='对应状态')
    confirmer = fields.Char(string='确认人')
    create_date = fields.Date(string='创建时间')
    confirm_date = fields.Date(string='确认时间')
    project_id = fields.Char(string='对应项目')
    task_id = fields.Char(string='对应任务')
